package com.lcpress.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

@Data
@TableName(value = "article")
public class Article {
	@TableId(value = "id",type = IdType.AUTO)
	private Integer id;
	private String title;
	private String content;
	private Date createdate;
	private Date updatedate;
	private Integer creatorid;
	private Integer status;
	
	public Article() {
		//System.currentTimeMillis();
		this.createdate=new Date();
		this.updatedate=createdate;
	}

}
